package com.sx.service.utils.sender.model;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

/**
 * @author AdinZ
 * @date 2020/11/11 18:13
 * 短信发送实体
 */
@Data
public class SmsRequest extends SenderRequest {
    private String areaCode;
    private String templateCode;

    public SmsRequest(String areaCode, String mobile, String templateCode, JSONObject content) {
        super();
        this.areaCode = areaCode;
        super.to = mobile;
        this.templateCode = templateCode;
        super.content = content.toJSONString();
    }

    public SmsRequest(String mobile, String templateCode, JSONObject content) {
        this(null, mobile, templateCode, content);
    }


}
